package com.example.demo.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

/**
 * 
 * @TableName borrow
 */
@TableName(value ="borrow")
public class Borrow implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.ASSIGN_UUID)
    private String id;

    /**
     * 
     */
//    @TableField("\"user\"")
    @TableField("`user`")
    private String user;

    /**
     * 
     */
    private String tool;

    /**
     * 
     */
    private String startTime;

    /**
     * 
     */
    private String planTime;

    /**
     * 
     */
    private String dur;

    /**
     * 
     */
    private String num;

    /**
     * 
     */
    private String audit;

    /**
     * 
     */
    private String state;

    /**
     * 
     */
    private String returnTime;

    /**
     * 
     */
    private String returnAudit;

    /**
     * 
     */
    private String returnInfo;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;



    /**
     * 
     */
    public String getUser() {
        return user;
    }

    /**
     * 
     */
    public void setUser(String user) {
        this.user = user;
    }

    /**
     * 
     */
    public String getTool() {
        return tool;
    }

    /**
     * 
     */
    public void setTool(String tool) {
        this.tool = tool;
    }

    /**
     * 
     */
    public String getStartTime() {
        return startTime;
    }

    /**
     * 
     */
    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    /**
     * 
     */
    public String getPlanTime() {
        return planTime;
    }

    /**
     * 
     */
    public void setPlanTime(String planTime) {
        this.planTime = planTime;
    }

    /**
     * 
     */
    public String getDur() {
        return dur;
    }

    /**
     * 
     */
    public void setDur(String dur) {
        this.dur = dur;
    }

    /**
     * 
     */
    public String getNum() {
        return num;
    }

    /**
     * 
     */
    public void setNum(String num) {
        this.num = num;
    }

    /**
     * 
     */
    public String getAudit() {
        return audit;
    }

    /**
     * 
     */
    public void setAudit(String audit) {
        this.audit = audit;
    }

    /**
     * 
     */
    public String getState() {
        return state;
    }

    /**
     * 
     */
    public void setState(String state) {
        this.state = state;
    }

    /**
     * 
     */
    public String getReturnTime() {
        return returnTime;
    }

    /**
     * 
     */
    public void setReturnTime(String returnTime) {
        this.returnTime = returnTime;
    }

    /**
     * 
     */
    public String getReturnAudit() {
        return returnAudit;
    }

    /**
     * 
     */
    public void setReturnAudit(String returnAudit) {
        this.returnAudit = returnAudit;
    }

    /**
     * 
     */
    public String getReturnInfo() {
        return returnInfo;
    }

    /**
     * 
     */
    public void setReturnInfo(String returnInfo) {
        this.returnInfo = returnInfo;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Borrow other = (Borrow) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getUser() == null ? other.getUser() == null : this.getUser().equals(other.getUser()))
            && (this.getTool() == null ? other.getTool() == null : this.getTool().equals(other.getTool()))
            && (this.getStartTime() == null ? other.getStartTime() == null : this.getStartTime().equals(other.getStartTime()))
            && (this.getPlanTime() == null ? other.getPlanTime() == null : this.getPlanTime().equals(other.getPlanTime()))
            && (this.getDur() == null ? other.getDur() == null : this.getDur().equals(other.getDur()))
            && (this.getNum() == null ? other.getNum() == null : this.getNum().equals(other.getNum()))
            && (this.getAudit() == null ? other.getAudit() == null : this.getAudit().equals(other.getAudit()))
            && (this.getState() == null ? other.getState() == null : this.getState().equals(other.getState()))
            && (this.getReturnTime() == null ? other.getReturnTime() == null : this.getReturnTime().equals(other.getReturnTime()))
            && (this.getReturnAudit() == null ? other.getReturnAudit() == null : this.getReturnAudit().equals(other.getReturnAudit()))
            && (this.getReturnInfo() == null ? other.getReturnInfo() == null : this.getReturnInfo().equals(other.getReturnInfo()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getUser() == null) ? 0 : getUser().hashCode());
        result = prime * result + ((getTool() == null) ? 0 : getTool().hashCode());
        result = prime * result + ((getStartTime() == null) ? 0 : getStartTime().hashCode());
        result = prime * result + ((getPlanTime() == null) ? 0 : getPlanTime().hashCode());
        result = prime * result + ((getDur() == null) ? 0 : getDur().hashCode());
        result = prime * result + ((getNum() == null) ? 0 : getNum().hashCode());
        result = prime * result + ((getAudit() == null) ? 0 : getAudit().hashCode());
        result = prime * result + ((getState() == null) ? 0 : getState().hashCode());
        result = prime * result + ((getReturnTime() == null) ? 0 : getReturnTime().hashCode());
        result = prime * result + ((getReturnAudit() == null) ? 0 : getReturnAudit().hashCode());
        result = prime * result + ((getReturnInfo() == null) ? 0 : getReturnInfo().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", user=").append(user);
        sb.append(", tool=").append(tool);
        sb.append(", startTime=").append(startTime);
        sb.append(", planTime=").append(planTime);
        sb.append(", dur=").append(dur);
        sb.append(", num=").append(num);
        sb.append(", audit=").append(audit);
        sb.append(", state=").append(state);
        sb.append(", returnTime=").append(returnTime);
        sb.append(", returnAudit=").append(returnAudit);
        sb.append(", returnInfo=").append(returnInfo);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
}